//------奖金测算 人员测算 人员测算配置--//------
import request from "@/router/axios";

//获取每个部门下的人员
export function getUserOfDeptById(query) {
  return request({
    url: '/bonus/bonusperson/page',
    method: 'get',
    params: query
  })
}

//新增
export function addObj(obj) {
  return request({
    url: '/bonus/bonusperson',
    method: 'post',
    data: obj
  })
}

//编辑
export function putObj(obj) {
  return request({
    url: '/bonus/bonusperson',
    method: 'put',
    data: obj
  })
}


export function getOrgOfDept(query){
  return request({
    url: '/bonus/bonusdept/tree',
    method: 'get',
    params: query
  })
}



export function delBatch(ids) {
  return request({
    url: '/bonus/bonusperson/deleteBatch',
    method: 'get',
    params: ids
  })
}

export function exportExcel(query) {
  return request({
    url: '/bonus/bonusperson/export',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}
